﻿using System;
using System.Collections.Generic;

namespace Kaiser.Modules.Cubic.DomainModel.Product
{
    public class ProductCategory
    {
        public ProductCategory()
        {
            Categories=new List<ProductCategory>();
        }

        public string CategoryName { get; set; }
        public string CategoryCode { get; set; }
        
        public int Sequence { get; set; }
        public string CategoryImg { get; set; }
        public string CategoryUrl { get; set; }
        public int ContentCount { get; set; }
        public string CategoryDesc { get; set; }
        public string SeoTitle { get; set; }
        public string SeoH1 { get; set; }
        public string SeoDes { get; set; }
        public string CreateMan { get; set; }
        public DateTime CreateTime { get; set; }

        public List<ProductCategory> Categories { get;set; }

        public ProductCategory ParentCategory { get; set; }

        public int ParentId { get; set; }

        public string ParentName { get; set; }

        public int Id { get; set; }

        public string name {
            get { return CategoryName; }
            set { CategoryName = value; }
        }

        public List<ProductCategory> children { 
            get { return Categories; }
        }
    }
}